package com.lightsaber.trade.cloth.dao.planning;

import org.springframework.stereotype.Component;

import com.lightsaber.trade.core.dao.BaseDao;
import com.lightsaber.trade.cloth.entity.planning.Level3CampusStatus;

@Component
public class Level3CampusStatusDao extends BaseDao<Level3CampusStatus, String> {

    public Level3CampusStatus findByLevel3AndCampus(final String level3PlanningId,
            final String discipline, final String campus) {
        eq("level3Planning.id", level3PlanningId);
        eq("discipline", discipline);
        eq("operatingCampus", campus);
        return unique();
    }
}
